package com.atguigu.eduorder.client;

import com.atguigu.commonutils.vo.CourseWebOrderVO;
import com.atguigu.eduorder.client.impl.EduFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程调用 根据课程Id查询课程详细信息
 *
 * @author zr
 */
@Component
@FeignClient(name = "service-edu", fallback = EduFileDegradeFeignClient.class)
public interface EduClient {
    @GetMapping("/edu/service/course/getCourseInfoOrder/{courseId}")
    CourseWebOrderVO getCourseInfoOrder(@PathVariable("courseId") String courseId);
}
